import Route from "react-router/lib/Route"
import { WeaLocaleProvider,WeaPopoverHrm } from 'ecCom';
import Home from "./components/Home"
import './style/index.less';
//派工规则
import DispatchSet from "./components/DispatchSet"
//手动派工
import ManuallyDispatch from "./components/ManuallyDispatch"
//派工报表
import DispatchReport from "./components/DispatchReport"
//抢单
import GrabSingle from "./components/GrabSingle"

import SysRemind from "./components/SysRemind"

import stores from './stores/index'

import { Provider } from 'mobx-react';
const getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'CustomizationDev');



const DispatchOA = (
	<Route path="dispatch" component={ Home }>
		<Route name="dispatchSet" path="dispatchSet" component={ DispatchSet } />
		<Route name="manuallyDispatch" path="manuallyDispatch" component={ ManuallyDispatch } />
		<Route name="dispatchReport" path="dispatchReport" component={ DispatchReport } />
		<Route name="grabSingle" path="grabSingle" component={ GrabSingle } />
		<Route name="sysRemind" path='sysRemind' component={ SysRemind } />
  	</Route>
)


module.exports = {
	Route: DispatchOA,
	store:stores,
}